How to install R studio in Ubuntu 20.04?

How to install R studio in Ubuntu 20.04?

Hello readers,
Today As of the time of writing this article there is no any official specific RStudio available for Ubuntu 20.04 (Code-name: focal) but Rstudio for Ubuntu 18.04 works fine for Ubuntu 20.04. I am using R studio in 20.04 for a weak ago and it's working fine for me.
Now visit the  RStudio downloads page and check for it to grab the latest release of RStudio for Debian based Linux distributions "Ubuntu 18/" or if available "Ubuntu 20/" download .deb file from here.

Installation process is almost same for 18.04 and 20.04.

Here in this article, we’ll dive to the installation of Open source edition of RStudio released under AGPL License.

Steps to Install RStudio:

  • Update system

Update System package index (this is the good practice) and optionally upgrade all installed package.
  • sudo apt update
  • sudo apt -y upgrade
  • Install R on Ubuntu/Debian

At this point, we’re ready to install R with the following command.
We need to install r-base package which contains the basic R functions that let you perform basic R programming and arithmetic operations. Use the command below to install.

  • sudo apt -y install r-base

If prompted to confirm installation, press y to continue.
verify your R Installation
  • sudo -i R
Output



This confirms that we’ve successfully installed R and entered its interactive shell.

Exit to the shell

press "ctrl+z"

  • Download and Install RStudio

Visit to RStudio downloads to download the latest release of RStudio for Ubuntu.
As of the time of writing, the latest version is rstudio-1.3.1056

  • sudo apt -y install wget
  • wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.1056-amd64.deb
Note: This link maybe outdated.

jump to your local directory where your file downloaded in terminal and run
  • sudo apt install ./rstudio-1.3.1056-amd64.deb

Enjoy! Your installation of R and RStudio on Ubuntu / Debian and Linux Mint has been successful.


0 comments: